Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Genesis Sample 2.9.0 #206

Merged
merged 52 commits into from
Mar 14, 2019
Merged

Genesis Sample 2.9.0 #206

merged 52 commits into from
Mar 14, 2019

Conversation

nickcernis
Copy link
Collaborator

  • New: Load configuration with the new genesis_get_config() function from Genesis 2.8.0. (See functions.php and the config/ folder.) Requires Genesis 2.9.0+.
  • Added: Additional pages are created during One-Click Theme Setup.
  • Added: A menu is set up during One-Click Theme Setup.
  • Added: Install and activate WPForms Lite, Genesis eNews Extended, and Simple Social Icons during One-Click Theme Setup.
  • Changed: Added Customizer colors to the Block Editor color palette.
  • Changed: Use theme-primary and theme-secondary slugs for Block Editor color palette to prevent possible loss of styling when switching themes. We are now using this convention for new StudioPress theme releases and updates and encourage theme developers to do the same.
  • Changed: Removed gray colors from the Block Editor color palette.
  • Changed: Generate inline styles for the Block Editor from theme supports, reducing manual Block Editor CSS required. See lib/gutenberg/inline-styles.php and Generate inline styles for the block editor from theme support declarations #198.
  • Changed: The default button block color is now blue and not gray.
  • Changed: Combined all Block Editor config into a single file at config/block-editor-settings.php.
  • Changed: Removed the XML sample content file. You can import sample content via One-Click Theme Setup by visiting /wp-admin/admin.php?page=genesis-getting-started instead.
  • Changed: CSS adjustments including button, blockquote, latest posts block, and WPForms styling.
  • Changed: improvements to CSS and PHP coding standards.

nickcernis and others added 30 commits January 15, 2019 16:22
Update changelog and versions.
Resolve phpcs errors for VS Code phpcs extension.
This is no longer needed in Genesis 2.9+, as WordPress generates the
slug automatically from the title.
TODO: test and adapt inline styles for use in Genesis Sample.
The block editor does not emit inline styles for the 'normal' size.
- Equivalent front-end CSS is now added in `inline-styles.php`.
- Editor CSS is now added inline by WordPress.
nickcernis and others added 22 commits March 13, 2019 14:12
Fixes an issue @dreamwhisper discovered where changing Customizer
colors would not update button colors in the preview until changes
are published.
…styles

Generate inline styles for the block editor from theme support declarations
This is no longer required as of Genesis 2.9.0. It was previously used
to set the footer credit URL. In Genesis 2.9.0 this is now pulled from
the Theme URI header in the stylesheet.

See studiopress/genesis#2166.
CHILD_THEME_NAME is no longer required as of Genesis 2.9.0. It was
previously used to set the footer credit text and as the handle for
the enqueued stylesheet. In Genesis 2.9.0 the name is now pulled from
the Theme Name header for the site footer, and a sanitized version
of the same value is used as the stylesheet handle.

See studiopress/genesis#2166.

The CHILD_THEME_HANDLE constant is used instead for enqueueing scripts
and styles. Where a human-readable name is needed (admin notices), it is
pulled directly from the stylesheet Theme Name line.

The goal is to reduce the number of places where people need to set
their theme name and version number.

The sanitized Name is used for the CHILD_THEME_HANDLE instead of the
Text Domain because we have often seen modified Genesis Sample themes
where the name is changed but the text domain is not. We could switch to
the Text Domain once this is implemented:
#142.

It's also likely that we'll switch away from constants and use helper
functions should those become available in Genesis. This would offer
better cache-busting during development, where assets can change often
but version strings do not.
studiopress/genesis#2199 (comment).
@nickcernis nickcernis merged commit 452ab98 into master Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants